<%
String uname=request.getParameter("uname");
String password=request.getParameter("pwd");

if((uname.equals("admin")) && (password.equals("admin")))
{
		session.setAttribute("uname",uname);	
		session.setAttribute("pswd",password);
	    response.sendRedirect("innerpage.jsp");
}
	else
	{
        response.sendRedirect("index.jsp?message1=<font color=orange size=3>please enter valid details</font>");
	}
%>